from wxpita import *

f = Frame(size='400, 500') [
    Panel [
        Button(name='btn1', label='One', pos=(10, 10)),
        Button(name='btn2', label='Two', pos=(10, 45)),
        Button(name='btn3', label='Three', pos=(10, 80)),
        TextCtrl(name='tc', pos=(10, 115), size=(370, 335),
                 style='te_multiline'),
    ],
]

print f.btn1
print f.btn2
print f.btn3
print f.tc
print '-'*80

@f.Init
def _():
    print f.btn1
    print f.btn2
    print f.btn3
    print f.tc

    print '-'*80

    w = f.widget
    
    print w.btn1
    print w.btn2
    print w.btn3
    print w.tc

f.Show("Member Controls Example")
